package Controllers

import (
	"fmt"
	"gPublic/Common"
	"gPublic/Logic"

	"github.com/gin-gonic/gin"
)

func GetCategoryList(c *gin.Context) {

	uid, _ := c.Get("id")
	fmt.Printf("解析的用户ID：%v\n", uid)

	// Logic.GetMenuTreeLogic()

	// 测试1
	// res := Logic.GetMenuTreeLogic()

	// 测试2
	res := Logic.GetPcPublicData()

	Common.SuccessResponse(c, Common.SUCCESS, res)
}
